﻿using DotNet.Auth.Utility;
using DotNet.Helper;
using DotNet.Utility;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using DotNet.Extensions;
using DotNet.Mvc;
using DotNet.Web.Areas.AuthWeb.Controllers;
using DotNet.JCore.Entity;
using DotNet.JCore.Service;

namespace DotNet.Web.Controllers
{
    public class BaseController : AuthController
    {
        private static Employee employee;

        /// <summary>
        /// 当前登录人员
        /// </summary>
        public static Employee CurrentEmployee
        {
            get
            {   
                employee = new EmployeeService().GetByUserId(CurrentUserId);
                return employee;
            }
        }
    }
}